package com.yan.exceptiontest;

import java.util.Random;
import java.util.Scanner;

public class Test5 {
    public static void main(String[] args) {
        int x = new Random().nextInt(101) + 100;
        Scanner input = new Scanner(System.in);
        System.out.println("输入一个10以内的整数y");
        int y = input.nextInt();
        if(x % y == 0){
            System.out.println(x + "是" + y + "的倍数");
        } else {
            System.out.println(x + "不是" + y + "的倍数");
        }
    }
}
